<template>
  <a-locale-provider :locale="locale">
  <div id="app">
    <router-view/>
  </div>
  </a-locale-provider>
</template>
<script>

  import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
    import indexedDB from './db/db'
    import {dictionary} from "./db/dictionary/dictionary"

    import {dictionaryType} from "./db/dictionary/dictionaryType"

    import {moneyIncome} from "./db/moneyIncome"
    import {moneyIncomeYeTai} from "./db/moneyIncomeYeTai"

    export default {
    data () {
      return {
        locale: zhCN,
      }
    },
    created () {
    
    },
    mounted() {
        indexedDB.initDB()
        // 初始化 字典表
        indexedDB.batInit('dictionary', dictionary)
        indexedDB.batInit('dictionaryType', dictionaryType)
        indexedDB.batInit('moneyIncome', moneyIncome)
        indexedDB.batInit('moneyIncomeYeTai', moneyIncomeYeTai)


    },
    methods:{

    }
  }
</script>
<style>
  #app {
    height: 100%;
  }
</style>